import 'package:hive/hive.dart';
part 'note.g.dart';

@HiveType(typeId: 0)
class Note  extends HiveObject {

  @HiveField(0)
  final String title;

  @HiveField(1)
  final String content;

  @HiveField(2)
  final String categoryName; // 分类名称

  @HiveField(3)
  final DateTime createdAt;

  @HiveField(4)
  DateTime updatedAt;

  Note({required this.title, required this.content,required this.categoryName, required this.createdAt,required this.updatedAt});

}


